package cn.com.duiba.millionaire.center.api.result;

import java.io.Serializable;

/**
 * Created by xiaoxuda on 2018/2/1.
 */
public class WithdrawApplyResult implements Serializable{
    private static final long serialVersionUID = 2109954543548470860L;

    private Boolean success;

    private Long withdrawId;

    private String failMsg;

    public static WithdrawApplyResult successResult(Long withdrawId){
        WithdrawApplyResult result = new WithdrawApplyResult();
        result.success = true;
        result.withdrawId = withdrawId;
        return result;
    }

    public static WithdrawApplyResult failResult(String failMsg){
        WithdrawApplyResult result = new WithdrawApplyResult();
        result.success = false;
        result.failMsg = failMsg;
        return result;
    }

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Long getWithdrawId() {
        return withdrawId;
    }

    public void setWithdrawId(Long withdrawId) {
        this.withdrawId = withdrawId;
    }

    public String getFailMsg() {
        return failMsg;
    }

    public void setFailMsg(String failMsg) {
        this.failMsg = failMsg;
    }
}
